<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--bootstrap插件-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link href="/static/plugin/bootstrap/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="/static/plugin/jo/joUI.css" rel="stylesheet"/>
    <!--字体插件-->
    <link href="/static/plugin/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="/static/plugin/layui-2.4.3/css/layui.css" rel="stylesheet"/>
    <!--ztree-->
    <link href="/static/plugin/zTree/css/metroStyle/metroStyle.css" rel="stylesheet"/>
    <!--common-->
    <link href="/static/css/common.css" rel="stylesheet"/>
    <title>重点监管企业表单</title>
</head>
<body>

<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
    <ul class="layui-tab-title">
        <li class="layui-this">企业基本信息</li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <!--按钮栏-->
                        <div class="form-group button-bar button-bar">
                            <!--按钮占位符.加载到的按钮会渲染到占位符里面-->
                            <span class="young-button-placeholder" navigateId="NAV_TYPE_FORM_UPDATE"></span>
                            <!--<button type="button"  isShow="joForm.isAdd" class="btn btn-primary" onclick="joForm.save()">
                                <i class="fa fa-plus-circle" aria-hidden="true"></i>&nbsp;新增
                            </button>
                            <button type="button" isShow="!joForm.isAdd" class="btn btn-info" onclick="joForm.update()">
                                <i class="fa fa-pencil-square" aria-hidden="true"></i>&nbsp;修改
                            </button>
                            <button type="button" isShow="!joForm.isAdd" class="btn btn-danger" onclick="joForm.del()">
                                <i class="fa fa-trash" aria-hidden="true"></i>&nbsp;删除
                            </button>-->
                        </div>
                        <!--按钮栏-->
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <form id="pageForm" name="pageForm" action="" method="post">
                            <h3 style="margin-bottom: 10px">企业信息：</h3>
                            <table class="table-bordered layui-table">
                                <colgroup>
                                    <col width="150">
                                    <col width="500">
                                    <col width="150">
                                </colgroup>
                                <input  type="text"   name="id" value="" class="form-control " style="display: none;" />
                                <tbody>
                                <tr>
                                    <td class="styleright must">企业名称</td>
                                    <td class="stylecenter" colspan="3">
                                        <input type="text"   name="enterprisename" value=""  class="form-control "  ErrEmpty="企业名称不允许为空" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="styleright must">统一社会信用代码</td>
                                    <td class="stylecenter">
                                        <input type="text"   name="organizationcode" value="" class="form-control readonly-edit"  ErrEmpty="统一社会信用代码" />
                                    </td>

                                    <!--<td class="styleright">工商营业执照</td>
                                    <td class="stylecenter">
                                        <span id="lbBusinessLicense">74129412-2</span>
                                    </td>-->
                                </tr>

                                <tr>
                                    <td class="styleright must">行政区划</td>
                                    <td class="stylecenter ">
                                        <div class="form-group" style="float: left"  >
                                            <label class="control-label" style="float: left" >省：&nbsp;</label>
                                            <select  style="width: 120px" name="provinceCode" id="provinceCode" class="joSelect form-control" data='' firstItem='{"id":"","name":""}'
                                                     dataurl="" keyfield="id" valuefield="name"></select>
                                        </div>
                                        <div class="form-group" style="float: left;border: 1px;" >
                                            <label class="control-label" style="float: left" >市：&nbsp;</label>
                                            <select  style="width: 120px" name="cityCode" id="cityCode" class="joSelect form-control" data='' firstItem='{"id":"","name":""}' dataurl="" keyfield="id" valuefield="name"></select>
                                        </div>
                                        <div class="form-group" style="float: left">
                                            <label class="control-label" style="float: left">县：&nbsp;</label>
                                            <select style="width: 120px" name="countyCode" id="countyCode" class="joSelect form-control" data='' firstItem='{"id":"","name":""}' dataurl="" keyfield="id" valuefield="name"></select>
                                        </div>
                                        <!--<input style="display: none" type="text"   name="regions" value="" class="form-control "  ErrEmpty="行政区划分不允许为空" />-->
                                    </td>
                                    <td class="styleright must">公司地址</td>
                                    <td class="stylecenter ">
                                        <input type="text"   name="position" value="" class="form-control "  ErrEmpty="位置不允许为空" />
                                    </td>
                                </tr>
                                <tr>

                                    <td class="styleright must">经度</td>
                                    <td class="stylecenter">
                                        <input type="text"   name="lng" value="" class="form-control " placeholder="请使用WGS1984或CGCS2000坐标系" ErrEmpty="经度不允许为空" />
                                    </td>
                                    <td class="styleright must">纬度</td>
                                    <td class="stylecenter">
                                        <input type="text"   name="lat" value="" class="form-control " placeholder="请使用WGS1984或CGCS2000坐标系" ErrEmpty="纬度不允许为空" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="styleright must">公司法人</td>
                                    <td class="stylecenter ">
                                        <input type="text"   name="corporation" value="" class="form-control "  ErrEmpty="公司法人不允许为空" /></td>
                                    <td class="styleright must">联系人</td>
                                    <td class="stylecenter ">
                                        <input type="text"   name="contacts" value="" class="form-control "  ErrEmpty="联系人不允许为空" /></td>
                                </tr>
                                <tr>
                                    <td class="styleright must">传真</td>
                                    <td class="stylecenter">
                                        <input type="text"   name="companyfax" value="" class="form-control" lay-ver ErrEmpty="公司传真不允许为空" /></td>
                                    <td class="styleright must">Email</td>
                                    <td class="stylecenter ">
                                        <input type="text"   name="contactsmail" value="" class="form-control " errph  ErrMail="联系人邮箱请填写正确格式" />
                                    </td>
                                </tr>
                                <tr>

                                    <td class="styleright must">行业</td>
                                    <td class="stylecenter ">
                                        <!--<input type="text"   name="industry" value="" class="form-control"  ErrEmpty="行业不允许为空" />-->
                                        <select  name="industry" value="" class="form-control" ErrNumber="行业不允许为空">
                                            <option value=""></option>
                                            <option value="有色金属冶炼">有色金属冶炼</option>
                                            <option value="石油加工">石油加工</option>
                                            <option value="化工">化工</option>
                                            <option value="焦化">焦化</option>
                                            <option value="电镀">电镀</option>
                                            <option value="制革">制革</option>
                                            <option value="其他">其他</option>
                                        </select>
                                    </td>
                                    <td class="styleright must">联系人手机</td>
                                    <td class="stylecenter ">
                                        <input type="text"   name="contactsphone" value="" class="form-control "  ErrPhone="联系人电话请填写正确格式"  />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="styleright must">备注</td>
                                    <td colspan="3" class="stylecenter ">
                                        <textarea type="text"   name="enterpriseRemarks" value="" class="form-control " ></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="styleright must">锁定</td>
                                    <td colspan="3" class="stylecenter ">
                                        <select style="width: 100px" name="unlack" value="" class="form-control" ErrNumber="锁定不允许为空">
                                            <option value="0">未锁定</option>
                                            <option value="1">已锁定</option>
                                        </select>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
        </div>



</div>
</div>



<!--配置信息-->
<script src="/static/js/config.js"></script>
<!--jquery-->
<script src="/static/plugin/jquery/jquery-3.3.1.js"></script>
<script src="/static/plugin/jquery/jquery.cookie.js"></script>
<!--bootstrap-->
<script src="/static/plugin/bootstrap/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<!--[if lt IE 9]>
<script src="/static/plugin/other/html5shiv.js"></script>
<script src="/static/plugin/other/respond.min.js"></script>
<![endif]-->
<!--layui-->
<script src="/static/plugin/layui-2.4.3/layui.all.js"></script>
<!--ztree-->
<script src="/static/plugin/zTree/js/jquery.ztree.all.js"></script>
<!--common-->
<script src="/static/js/common.js"></script>
<!--jo-->
<script src="/static/plugin/jo/jo.js"></script>
<script src="/static/plugin/jo/jo-adapt.js"></script>
<script src="/static/plugin/jo/jo-page-view.js"></script>
<script src="/static/plugin/jo/jo-page-form.js"></script>
<script src="/static/plugin/jo/jo-listener.js"></script>

<!--联动框-->
<!--配置信息-->
<script src="/static/js/config.js"></script>
<!--jquery-->
<script src="/static/plugin/jquery/jquery-3.3.1.js"></script>
<script src="/static/plugin/jquery/jquery.cookie.js"></script>
<!--bootstrap-->
<script src="/static/plugin/bootstrap/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<!--[if lt IE 9]>
<script src="/static/plugin/other/html5shiv.js"></script>
<script src="/static/plugin/other/respond.min.js"></script>
<![endif]-->
<!--layui-->
<script src="/static/plugin/layui-2.4.3/layui.all.js"></script>
<!--ztree-->
<script src="/static/plugin/zTree/js/jquery.ztree.all.js"></script>
<!--jo-->
<script src="/static/plugin/jo/jo.js"></script>
<script src="/static/plugin/jo/jo-adapt.js"></script>
<script src="/static/plugin/jo/jo-page-view.js"></script>
<script src="/static/plugin/jo/jo-page-form.js"></script>
<script src="/static/plugin/jo/jo-listener.js"></script>
<!--common-->
<script src="/static/js/common.js"></script>



<script type="text/javascript">

    $(function(){
        var jParams = {
            "PKName" : "id",//主键属性名
            "saveAfter" : "toEdit",
            "addUrl" : "/nyd/uviSuperviseenterprises/insert",//新增
            "deleteUrl" : "/nyd/uviSuperviseenterprises/delete",//删除
            "updateUrl" : "/nyd/uviSuperviseenterprises/update",//修改
            "formDataUrl" : "/nyd/uviSuperviseenterprises/get"//查询

            //"readonly2Label" : true //只读转文本
        };
        initButton();
        joForm.initFormPage(jParams);//初始化
       /* if (!joForm.isAdd) {
            Grid("pollutionList").loadData(joForm.formData.pollutiontreatments);//初始化页面
            Grid("listhazardousList").loadData(joForm.formData.listhazardousList);//初始化页面
        };*/

    });


    //初始化新增页面回调函数(在初始化按钮前发生)
    joForm.initFormPageOfAdd = function(){
        //初始化省市县联动
        initProvinceCityCounty('provinceCode', 'cityCode', 'countyCode');
    };
    //初始化表单值前处理
    joForm.initFormValueBefore = function(oJson){
        //初始化省市县联动
        initProvinceCityCounty('provinceCode', 'cityCode', 'countyCode', joForm.formData.provinceCode, joForm.formData.cityCode, joForm.formData.countyCode);
    };




    //初始化表单值后处理
    joForm.initFormValueAfter = function(oJson){

    };
    //新增请求提交前回调函数
    joForm.dealDataAtSaveBefore = function(oJson){

    };
    //修改请求提交前回调函数
    joForm.dealDataAtUpdateBefore = function(oJson){

    };



    /* 关于joForm更多回调函数和配置参数可查看jo-page-form.js */

</script>
</body>
</html>
